package com.zmn.mcc.cas.server.boot.autoconfigure;

import com.zmn.mcc.cas.server.CasServerConsts;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author quanjic
 * @version v1.0
 * @since 2020/6/16 9:50
 **/
@Getter
@Setter
@ConfigurationProperties(prefix = "cas.server")
public class CasServerProperties {

    private String cookieName = ".zmn.id";

    private String cookieDomain = ".xiujiadian.com";

    private String cookiePath = "/";

    // cookie的有效时间(单位秒),-1表示浏览器关闭时失效
    private Integer cookieMaxAge = CasServerConsts.LOGIN_TIMEOUT_SEC;

    // session有效时间(毫秒单位),1小时=3600000ms
    private Long sessionTimeout = (long)CasServerConsts.LOGIN_TIMEOUT_MILL;

    private String ehcachePath = "classpath:common/cas-server-shiro-ehcache.xml";

    /**
     * 提出URL
     */
    private String kickoutUrl;

}
